inspector: Fix a typo
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Aug 2015 11:11:34 +0000 (07:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 4 Aug 2015 11:11:34 +0000 (07:11 -0400)
Blocking a signal should be paired with unblocking.
Spotted by Krzesimir Nowak

gtk/inspector/object-tree.c

index e35fd5c5cd553d73493d0021a9b85146fbe55b2c..55fc7e3f53d7f3e38b3da0ccaaa8577924dbb2ff 100644 (file)
@@ -847,7 +847,7 @@ select_object_internal (GtkInspectorObjectTree *wt,
         g_signal_handlers_block_by_func (selection, on_selection_changed, wt);
       gtk_tree_selection_select_iter (selection, &iter);
       if (!activate)
-        g_signal_handlers_block_by_func (selection, on_selection_changed, wt);
+        g_signal_handlers_unblock_by_func (selection, on_selection_changed, wt);
 
       gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (wt->priv->tree), path, NULL, TRUE, 0.5, 0);
       if (activate)